<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>TFCMS: TFCMSView Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">TFCMS
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_t_f_c_m_s_view.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">TFCMSView Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="TFCMSView" --><!-- doxytag: inherits="TFCMSAbstractView" --><div class="dynheader">
Inheritance diagram for TFCMSView:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_f_c_m_s_view.png" usemap="#TFCMSView_map" alt=""/>
  <map id="TFCMSView_map" name="TFCMSView_map">
<area href="class_t_f_c_m_s_abstract_view.html" alt="TFCMSAbstractView" shape="rect" coords="0,0,130,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a1855f6a0bf3b464a60129e58043ca53b">__construct</a> ($template=&quot;Default&quot;, $default=&quot;Default&quot;, $doctype=&quot;XHTML 1.1&quot;, $tpl_file=&quot;index.tpl.php&quot;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_t_f_c_m_s_view.html">TFCMSView</a> constructor.  <a href="#a1855f6a0bf3b464a60129e58043ca53b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a7e8e6839245593fc0329f19d4d80ea8b">addJavaScript</a> ($path)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add JavaScript for inclusion.  <a href="#a7e8e6839245593fc0329f19d4d80ea8b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a616df1501516754c285ff544f4d18cbb">addMetaData</a> ($name, $content)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add metadata for rendering.  <a href="#a616df1501516754c285ff544f4d18cbb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a4bf11f4f032dc58d991327ed26ab9ad3">addStyleSheet</a> ($path)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add stylesheet for inclusion.  <a href="#a4bf11f4f032dc58d991327ed26ab9ad3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#abc5de50569f4b77709660459bc3fcbfe">currentPageTitle</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate current file path to title and return it.  <a href="#abc5de50569f4b77709660459bc3fcbfe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a98902570528897c3bf355088e374f02c">parseTemplate</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Include template file.  <a href="#a98902570528897c3bf355088e374f02c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a0b54f0075bcf7135c2d498dd8331dbf5">renderBreadcrumbs</a> ($default=false, $separator=&quot; &amp;raquo; &quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#aa75cb03946189017c3d3e5b4d4354f34">renderCategory</a> (<a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a> &amp;$data, <a class="el" href="class_html_element.html">HtmlElement</a> &amp;$root_elem, $render_subs=true, $force_links=false, $render_ids=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a5a3351356c1d6ff55787f211d388d030">renderClosingJavaScript</a> (<a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a> &amp;$data)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Render category-specific JavaScript for the end of the page.  <a href="#a5a3351356c1d6ff55787f211d388d030"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#aca29bd67948b332329846a5810cb5c27">renderContent</a> ($page_previews=false, $preview_limit=1, $max_chars=300)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the current page.  <a href="#aca29bd67948b332329846a5810cb5c27"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a8e979ce7222b6c52e4ec985b57b1b20a">renderDocType</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a7b099705f9d7fb8f5e4cc5313c9bbe4f">renderFavicon</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a33b7d67983daa5f6a2bc0c6b8653891f">renderJavaScript</a> ($complete=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Renders global JavaScript to the page.  <a href="#a33b7d67983daa5f6a2bc0c6b8653891f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a04369fce03493c7a29ee930247ff10fc">renderMetaData</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a65c7df259c3ab3100d30c7bfa6e96482">renderNavigation</a> ($render_subs=true, $force_links=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a4cd72befb61309594a576e395bea1afe">renderStyleSheet</a> ($complete=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Renders stylesheet-related information for browser.  <a href="#a4cd72befb61309594a576e395bea1afe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a564ad640a80b7a202a528e6fcae32c35">setDocType</a> ($doctype)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the DOCTYPE of the document.  <a href="#a564ad640a80b7a202a528e6fcae32c35"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a6c4676bc0ec1136eb324a26f0ac6252b">setFavicon</a> ($favicon)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a58d17b03cf2242ecaf8c9227dfdc4809">setModel</a> (<a class="el" href="class_t_f_c_m_s_abstract_model.html">TFCMSAbstractModel</a> &amp;$model)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the view's model.  <a href="#a58d17b03cf2242ecaf8c9227dfdc4809"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a966bbef8f8a4a592513bfd366a151d43">removeSpecialCharacters</a> ($text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove special characters from <code>$text</code>.  <a href="#a966bbef8f8a4a592513bfd366a151d43"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a2aefedbe5165b318345597593bf1419b">ERROR_404</a> = &quot;&lt;p id=\&quot;error_404\&quot;&gt;The page you have requested could not be found.&lt;/p&gt;&quot;</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a5607510b119a4be21e37e55ad0ac277f">categoryToUrl</a> ($category)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Make category ID suitable for URLs.  <a href="#a5607510b119a4be21e37e55ad0ac277f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#af713f083bc38ebc24f19bd7508b7ca04">getJavaScriptPath</a> ($full_path=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the path of the JavaScript script specific to the template.  <a href="#af713f083bc38ebc24f19bd7508b7ca04"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a3db1f0bdb0701995f608c2bd6dfd6963">getStyleSheetPath</a> ($full_path=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the path of the stylesheet specific to the template.  <a href="#a3db1f0bdb0701995f608c2bd6dfd6963"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a4faced39e5a4a69805a7d3121b191ad1">getTemplatePath</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Figure out what template to use.  <a href="#a4faced39e5a4a69805a7d3121b191ad1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#ac9804eb030dd23eeea97669a5a37f645">filePathToName</a> ($file)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate file path to title and return it.  <a href="#ac9804eb030dd23eeea97669a5a37f645"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#ac36406a94fb1edb91887e0fbf1264619">filePathToUrl</a> ($file, $category)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate file path to URL and return it.  <a href="#ac36406a94fb1edb91887e0fbf1264619"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#ab3f2e23cb2a2ef40b21fe2b2b738164e">parseCatForHtml</a> ($cat)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate category ID for use in HTML and return it.  <a href="#ab3f2e23cb2a2ef40b21fe2b2b738164e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a55fa8ce0f7b61c5a246f5cfaa5c82558">renderDirectories</a> (<a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a> &amp;$data, <a class="el" href="class_html_element.html">HtmlElement</a> &amp;$elem)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a92144570057f39efc69b7a73590c97ae">renderLinks</a> (<a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a> &amp;$data, <a class="el" href="class_html_element.html">HtmlElement</a> &amp;$elem)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a8bc4a18be9793a0bdc9a02ee139d6e20">renderPagePreview</a> (<a class="el" href="class_t_f_c_m_s_dir.html">TFCMSDir</a> $dir, $file, $max_chars)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f_c_m_s_view.html#a3faea8db704d62b339159e9e5b30105e">renderSubCategory</a> (<a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a> &amp;$data, <a class="el" href="class_html_element.html">HtmlElement</a> &amp;$elem, $render_ids=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Render sub (non-root) categories.  <a href="#a3faea8db704d62b339159e9e5b30105e"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00050">50</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1855f6a0bf3b464a60129e58043ca53b"></a><!-- doxytag: member="TFCMSView::__construct" ref="a1855f6a0bf3b464a60129e58043ca53b" args="($template=&quot;Default&quot;, $default=&quot;Default&quot;, $doctype=&quot;XHTML 1.1&quot;, $tpl_file=&quot;index.tpl.php&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a1855f6a0bf3b464a60129e58043ca53b">__construct</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>template</em> = <code>&quot;Default&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>default</em> = <code>&quot;Default&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>doctype</em> = <code>&quot;XHTML&#160;1.1&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>tpl_file</em> = <code>&quot;index.tpl.php&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="class_t_f_c_m_s_view.html">TFCMSView</a> constructor. </p>
<dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<p>If full path is not provided for any of the parameters, then the system will assume __cwd."/templates/$template". You can dynamically change the template by setting the GET <em>tfcms_template</em> variable in the browser URL to the name of an existing template.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$template</td><td>Name or path of desired template directory. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$default</td><td>Name or path of fallback template directory. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$doctype</td><td>What documentation type to use. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$tpl_file</td><td>Name of file to use for the template.</td></tr>
  </table>
  </dd>
</dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd></dd></dl>
<p>Implement a template config parser to replace $doctype and $tpl_file param </p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00091">91</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7e8e6839245593fc0329f19d4d80ea8b"></a><!-- doxytag: member="TFCMSView::addJavaScript" ref="a7e8e6839245593fc0329f19d4d80ea8b" args="($path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a7e8e6839245593fc0329f19d4d80ea8b">addJavaScript</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add JavaScript for inclusion. </p>
<p>This method is called internally by <a class="el" href="class_t_f_c_m_s.html#a9ed0781fa1256597735da1079445855a" title="Add JavaScript scripts for every page.">TFCMS::addGlobalJavaScripts()</a> and therefore should not be called directly.</p>
<dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<p>The system will use the "script.js" file located at the desired template's path if any and it will use the one located at __root."/base.js" if any.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$path</td><td>Path to the JavaScript file.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_t_f_c_m_s.html#a9ed0781fa1256597735da1079445855a" title="Add JavaScript scripts for every page.">TFCMS::addGlobalJavaScripts()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a7e8e6839245593fc0329f19d4d80ea8b">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00121">121</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a616df1501516754c285ff544f4d18cbb"></a><!-- doxytag: member="TFCMSView::addMetaData" ref="a616df1501516754c285ff544f4d18cbb" args="($name, $content)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a616df1501516754c285ff544f4d18cbb">addMetaData</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>content</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add metadata for rendering. </p>
<p>This method is called internally by <a class="el" href="class_t_f_c_m_s.html#a616df1501516754c285ff544f4d18cbb" title="Add meta data.">TFCMS::addMetaData()</a> and therefore should not be called directly. </p>

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a616df1501516754c285ff544f4d18cbb">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00132">132</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a4bf11f4f032dc58d991327ed26ab9ad3"></a><!-- doxytag: member="TFCMSView::addStyleSheet" ref="a4bf11f4f032dc58d991327ed26ab9ad3" args="($path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a4bf11f4f032dc58d991327ed26ab9ad3">addStyleSheet</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add stylesheet for inclusion. </p>
<p>This method is called internally by <a class="el" href="class_t_f_c_m_s.html#ab842605b2f76a5c199da082f8931b3f5" title="Add stylesheets for every page.">TFCMS::addGlobalStyleSheets()</a> and therefore should not be called directly.</p>
<dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<p>The system will use the "style.css" file located at the desired template's path if any and it will use the one located at __root."/base.css" if any.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$path</td><td>Path to the stylesheet file.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_t_f_c_m_s.html#ab842605b2f76a5c199da082f8931b3f5" title="Add stylesheets for every page.">TFCMS::addGlobalStyleSheets()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a4bf11f4f032dc58d991327ed26ab9ad3">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00152">152</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a5607510b119a4be21e37e55ad0ac277f"></a><!-- doxytag: member="TFCMSView::categoryToUrl" ref="a5607510b119a4be21e37e55ad0ac277f" args="($category)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a5607510b119a4be21e37e55ad0ac277f">categoryToUrl</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>category</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Make category ID suitable for URLs. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$category</td><td>ID of category. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00162">162</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="abc5de50569f4b77709660459bc3fcbfe"></a><!-- doxytag: member="TFCMSView::currentPageTitle" ref="abc5de50569f4b77709660459bc3fcbfe" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#abc5de50569f4b77709660459bc3fcbfe">currentPageTitle</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Translate current file path to title and return it. </p>

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#abc5de50569f4b77709660459bc3fcbfe">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00170">170</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="ac9804eb030dd23eeea97669a5a37f645"></a><!-- doxytag: member="TFCMSView::filePathToName" ref="ac9804eb030dd23eeea97669a5a37f645" args="($file)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#ac9804eb030dd23eeea97669a5a37f645">filePathToName</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>file</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Translate file path to title and return it. </p>
<p>This is a convenience function used for rendering the navigation.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$file</td><td>Path to file.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_t_f_c_m_s_abstract_view.html#ae48158bae0eed75916a3e20ab1367ed3">renderNavigation()</a> </dd>
<dd>
<a class="el" href="class_t_f_c_m_s_view.html#a55fa8ce0f7b61c5a246f5cfaa5c82558">renderDirectories()</a> </dd></dl>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00268">268</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="ac36406a94fb1edb91887e0fbf1264619"></a><!-- doxytag: member="TFCMSView::filePathToUrl" ref="ac36406a94fb1edb91887e0fbf1264619" args="($file, $category)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#ac36406a94fb1edb91887e0fbf1264619">filePathToUrl</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>category</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Translate file path to URL and return it. </p>
<p>This is a convenience function used for rendering the navigation.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$file</td><td>Path to file. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$category</td><td>Category ID.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_t_f_c_m_s_abstract_view.html#ae48158bae0eed75916a3e20ab1367ed3">renderNavigation()</a> </dd>
<dd>
<a class="el" href="class_t_f_c_m_s_view.html#a55fa8ce0f7b61c5a246f5cfaa5c82558">renderDirectories()</a> </dd></dl>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00285">285</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="af713f083bc38ebc24f19bd7508b7ca04"></a><!-- doxytag: member="TFCMSView::getJavaScriptPath" ref="af713f083bc38ebc24f19bd7508b7ca04" args="($full_path=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#af713f083bc38ebc24f19bd7508b7ca04">getJavaScriptPath</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>full_path</em> = <code>false</code></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the path of the JavaScript script specific to the template. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">bool</td><td class="paramname">$full_path</td><td>Whether or not to return full system path or path relative to the domain. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00192">192</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a3db1f0bdb0701995f608c2bd6dfd6963"></a><!-- doxytag: member="TFCMSView::getStyleSheetPath" ref="a3db1f0bdb0701995f608c2bd6dfd6963" args="($full_path=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a3db1f0bdb0701995f608c2bd6dfd6963">getStyleSheetPath</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>full_path</em> = <code>false</code></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the path of the stylesheet specific to the template. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">bool</td><td class="paramname">$full_path</td><td>Whether or not to return full system path or path relative to the domain. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00203">203</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a4faced39e5a4a69805a7d3121b191ad1"></a><!-- doxytag: member="TFCMSView::getTemplatePath" ref="a4faced39e5a4a69805a7d3121b191ad1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a4faced39e5a4a69805a7d3121b191ad1">getTemplatePath</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Figure out what template to use. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_t_f_c_m_s_view.html#a4cd72befb61309594a576e395bea1afe" title="Renders stylesheet-related information for browser.">renderStyleSheet()</a> </dd></dl>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00215">215</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="ab3f2e23cb2a2ef40b21fe2b2b738164e"></a><!-- doxytag: member="TFCMSView::parseCatForHtml" ref="ab3f2e23cb2a2ef40b21fe2b2b738164e" args="($cat)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#ab3f2e23cb2a2ef40b21fe2b2b738164e">parseCatForHtml</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>cat</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Translate category ID for use in HTML and return it. </p>
<p>This is a convenience function used for rendering the navigation.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_t_f_c_m_s_abstract_view.html#ae48158bae0eed75916a3e20ab1367ed3">renderNavigation()</a> </dd></dl>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00301">301</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a98902570528897c3bf355088e374f02c"></a><!-- doxytag: member="TFCMSView::parseTemplate" ref="a98902570528897c3bf355088e374f02c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a98902570528897c3bf355088e374f02c">parseTemplate</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Include template file. </p>

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a98902570528897c3bf355088e374f02c">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00311">311</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a966bbef8f8a4a592513bfd366a151d43"></a><!-- doxytag: member="TFCMSView::removeSpecialCharacters" ref="a966bbef8f8a4a592513bfd366a151d43" args="($text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_t_f_c_m_s_view.html#a966bbef8f8a4a592513bfd366a151d43">removeSpecialCharacters</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Remove special characters from <code>$text</code>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$text</td><td>Text to be filtered. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00325">325</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a0b54f0075bcf7135c2d498dd8331dbf5"></a><!-- doxytag: member="TFCMSView::renderBreadcrumbs" ref="a0b54f0075bcf7135c2d498dd8331dbf5" args="($default=false, $separator=&quot; &amp;raquo; &quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a0b54f0075bcf7135c2d498dd8331dbf5">renderBreadcrumbs</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>default</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>separator</em> = <code>&quot;&#160;&amp;raquo;&#160;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00330">330</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="aa75cb03946189017c3d3e5b4d4354f34"></a><!-- doxytag: member="TFCMSView::renderCategory" ref="aa75cb03946189017c3d3e5b4d4354f34" args="(TFCMSCategory &amp;$data, HtmlElement &amp;$root_elem, $render_subs=true, $force_links=false, $render_ids=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#aa75cb03946189017c3d3e5b4d4354f34">renderCategory</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a> &amp;$&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_html_element.html">HtmlElement</a> &amp;$&#160;</td>
          <td class="paramname"><em>root_elem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>render_subs</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>force_links</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>render_ids</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00363">363</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a5a3351356c1d6ff55787f211d388d030"></a><!-- doxytag: member="TFCMSView::renderClosingJavaScript" ref="a5a3351356c1d6ff55787f211d388d030" args="(TFCMSCategory &amp;$data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a5a3351356c1d6ff55787f211d388d030">renderClosingJavaScript</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a> &amp;$&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Render category-specific JavaScript for the end of the page. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype"><a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a></td><td class="paramname">$data</td><td>Category to retrieve JavaScript paths from. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a5a3351356c1d6ff55787f211d388d030">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00419">419</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="aca29bd67948b332329846a5810cb5c27"></a><!-- doxytag: member="TFCMSView::renderContent" ref="aca29bd67948b332329846a5810cb5c27" args="($page_previews=false, $preview_limit=1, $max_chars=300)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#aca29bd67948b332329846a5810cb5c27">renderContent</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>page_previews</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>preview_limit</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>max_chars</em> = <code>300</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Render the current page. </p>
<p>Will render the current page based on the URL. If the URL does not point to a file, it will attempt to render category-related information from the current category if $page_previews equals <em>true</em>. If no category-related data is found and $page_preview equals <em>true</em>, it will simply render the category. If the page does not exist, an error message is displayed.</p>
<p>If $preview_limit equals -1, it will attempt to render a preview for all pages found in each directory.</p>
<dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<p>When displaying the page preview, all HTML is stripped from the file.</p>
<dl class="warning"><dt><b>Warning:</b></dt><dd></dd></dl>
<p>When using page previews, this method does not strip any PHP code from the files.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">bool</td><td class="paramname">$page_previews</td><td>Whether or not to show a preview of the first-listed file in each directory. </td></tr>
    <tr><td class="paramtype">int</td><td class="paramname">$preview_limit</td><td>Limit to how many files should be dislpayed per directory. </td></tr>
    <tr><td class="paramtype">int</td><td class="paramname">$max_chars</td><td>Limit to how many characters from the files to show. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00458">458</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a55fa8ce0f7b61c5a246f5cfaa5c82558"></a><!-- doxytag: member="TFCMSView::renderDirectories" ref="a55fa8ce0f7b61c5a246f5cfaa5c82558" args="(TFCMSCategory &amp;$data, HtmlElement &amp;$elem)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a55fa8ce0f7b61c5a246f5cfaa5c82558">renderDirectories</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a> &amp;$&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_html_element.html">HtmlElement</a> &amp;$&#160;</td>
          <td class="paramname"><em>elem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00539">539</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a8e979ce7222b6c52e4ec985b57b1b20a"></a><!-- doxytag: member="TFCMSView::renderDocType" ref="a8e979ce7222b6c52e4ec985b57b1b20a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a8e979ce7222b6c52e4ec985b57b1b20a">renderDocType</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a8e979ce7222b6c52e4ec985b57b1b20a">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00560">560</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a7b099705f9d7fb8f5e4cc5313c9bbe4f"></a><!-- doxytag: member="TFCMSView::renderFavicon" ref="a7b099705f9d7fb8f5e4cc5313c9bbe4f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a7b099705f9d7fb8f5e4cc5313c9bbe4f">renderFavicon</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a7b099705f9d7fb8f5e4cc5313c9bbe4f">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00595">595</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a33b7d67983daa5f6a2bc0c6b8653891f"></a><!-- doxytag: member="TFCMSView::renderJavaScript" ref="a33b7d67983daa5f6a2bc0c6b8653891f" args="($complete=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a33b7d67983daa5f6a2bc0c6b8653891f">renderJavaScript</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>complete</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Renders global JavaScript to the page. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">bool</td><td class="paramname">$complete</td><td>Whether or not to include the contents of the JavaScript file instead of linking to it. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a33b7d67983daa5f6a2bc0c6b8653891f">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00608">608</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a92144570057f39efc69b7a73590c97ae"></a><!-- doxytag: member="TFCMSView::renderLinks" ref="a92144570057f39efc69b7a73590c97ae" args="(TFCMSCategory &amp;$data, HtmlElement &amp;$elem)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a92144570057f39efc69b7a73590c97ae">renderLinks</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a> &amp;$&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_html_element.html">HtmlElement</a> &amp;$&#160;</td>
          <td class="paramname"><em>elem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00644">644</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a04369fce03493c7a29ee930247ff10fc"></a><!-- doxytag: member="TFCMSView::renderMetaData" ref="a04369fce03493c7a29ee930247ff10fc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a04369fce03493c7a29ee930247ff10fc">renderMetaData</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a04369fce03493c7a29ee930247ff10fc">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00663">663</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a65c7df259c3ab3100d30c7bfa6e96482"></a><!-- doxytag: member="TFCMSView::renderNavigation" ref="a65c7df259c3ab3100d30c7bfa6e96482" args="($render_subs=true, $force_links=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a65c7df259c3ab3100d30c7bfa6e96482">renderNavigation</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>render_subs</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>force_links</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00670">670</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a8bc4a18be9793a0bdc9a02ee139d6e20"></a><!-- doxytag: member="TFCMSView::renderPagePreview" ref="a8bc4a18be9793a0bdc9a02ee139d6e20" args="(TFCMSDir $dir, $file, $max_chars)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a8bc4a18be9793a0bdc9a02ee139d6e20">renderPagePreview</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_f_c_m_s_dir.html">TFCMSDir</a> $&#160;</td>
          <td class="paramname"><em>dir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>max_chars</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00691">691</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a4cd72befb61309594a576e395bea1afe"></a><!-- doxytag: member="TFCMSView::renderStyleSheet" ref="a4cd72befb61309594a576e395bea1afe" args="($complete=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a4cd72befb61309594a576e395bea1afe">renderStyleSheet</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>complete</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Renders stylesheet-related information for browser. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">bool</td><td class="paramname">$complete</td><td>Whether or not to include the contents of the CSS file instead of linking to it. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a4cd72befb61309594a576e395bea1afe">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00704">704</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a3faea8db704d62b339159e9e5b30105e"></a><!-- doxytag: member="TFCMSView::renderSubCategory" ref="a3faea8db704d62b339159e9e5b30105e" args="(TFCMSCategory &amp;$data, HtmlElement &amp;$elem, $render_ids=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a3faea8db704d62b339159e9e5b30105e">renderSubCategory</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a> &amp;$&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_html_element.html">HtmlElement</a> &amp;$&#160;</td>
          <td class="paramname"><em>elem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>render_ids</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Render sub (non-root) categories. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype"><a class="el" href="class_t_f_c_m_s_category.html">TFCMSCategory</a></td><td class="paramname">$data</td><td>The parent category to retrieve the sub-categories from. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$tab</td><td>How many tabs to prefix for the rendered HTML. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00755">755</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a564ad640a80b7a202a528e6fcae32c35"></a><!-- doxytag: member="TFCMSView::setDocType" ref="a564ad640a80b7a202a528e6fcae32c35" args="($doctype)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a564ad640a80b7a202a528e6fcae32c35">setDocType</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>doctype</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the DOCTYPE of the document. </p>
<p>Used to determine which standard to render HTML for.</p>
<p>Possible values: "HTML 4.01 Frameset", "HTML 4.01 Strict", "HTML 4.01 Transitional", "XHTML 1.0 Frameset", "XHTML 1.0 Strict", "XHTML 1.0 Transitional", "XHTML 1.1".</p>
<dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<p>Default DOCTYPE is "XHTML 1.1".</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$doctype</td><td>DOCTYPE </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a564ad640a80b7a202a528e6fcae32c35">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00811">811</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a6c4676bc0ec1136eb324a26f0ac6252b"></a><!-- doxytag: member="TFCMSView::setFavicon" ref="a6c4676bc0ec1136eb324a26f0ac6252b" args="($favicon)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a6c4676bc0ec1136eb324a26f0ac6252b">setFavicon</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>favicon</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00816">816</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<a class="anchor" id="a58d17b03cf2242ecaf8c9227dfdc4809"></a><!-- doxytag: member="TFCMSView::setModel" ref="a58d17b03cf2242ecaf8c9227dfdc4809" args="(TFCMSAbstractModel &amp;$model)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_f_c_m_s_view.html#a58d17b03cf2242ecaf8c9227dfdc4809">setModel</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_f_c_m_s_abstract_model.html">TFCMSAbstractModel</a> &amp;$&#160;</td>
          <td class="paramname"><em>model</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the view's model. </p>
<p>If you want the view to make use of another model, set the model with this method.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramtype"><a class="el" href="class_t_f_c_m_s_abstract_model.html">TFCMSAbstractModel</a></td><td class="paramname">$model</td><td>Reference to a <a class="el" href="class_t_f_c_m_s_abstract_model.html">TFCMSAbstractModel</a> sub class. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="class_t_f_c_m_s_abstract_view.html#a58d17b03cf2242ecaf8c9227dfdc4809">TFCMSAbstractView</a>.</p>

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00827">827</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="a2aefedbe5165b318345597593bf1419b"></a><!-- doxytag: member="TFCMSView::ERROR_404" ref="a2aefedbe5165b318345597593bf1419b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_t_f_c_m_s_view.html#a2aefedbe5165b318345597593bf1419b">ERROR_404</a> = &quot;&lt;p id=\&quot;error_404\&quot;&gt;The page you have requested could not be found.&lt;/p&gt;&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="view__tfcms_8class_8php_source.html#l00070">70</a> of file <a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/reeko5k/www/tfcms/modules/<a class="el" href="view__tfcms_8class_8php_source.html">view_tfcms.class.php</a></li>
</ul>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_t_f_c_m_s_view.html">TFCMSView</a>      </li>

    <li class="footer">Generated on Mon Aug 6 2012 13:10:01 for TFCMS by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
